package com.ken.spring.factroybean;

import com.ken.spring.Car;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class FactoryBeanMain {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("beans-factorybean.xml");

        Car car = (Car) ctx.getBean("car");
        System.out.println(car);
    }
}
